using SqlSugar;
using System.ComponentModel.DataAnnotations;

namespace Domain
{
    /// <summary>
    /// 生产计划明细表
    /// </summary>
    [SugarTable("Lwp_ProductionPlanDetail")]
    public class ProductionPlanDetail
    {
        [Key]
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        
        /// <summary>
        /// 关联的生产计划ID
        /// </summary>
        public int PlanId { get; set; }
        
        /// <summary>
        /// 物品编号
        /// </summary>
        public string ItemCode { get; set; } = string.Empty;
        
        /// <summary>
        /// 物品名称
        /// </summary>
        public string ItemName { get; set; } = string.Empty;
        
        /// <summary>
        /// 规格型号
        /// </summary>
        public string Spec { get; set; } = string.Empty;
        
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; } = string.Empty;
        
        /// <summary>
        /// 物品类别
        /// </summary>
        public string ItemCategory { get; set; } = string.Empty;
        
        /// <summary>
        /// 物品分类
        /// </summary>
        public string ItemClass { get; set; } = string.Empty;
        
        /// <summary>
        /// 品牌
        /// </summary>
        public string Brand { get; set; } = string.Empty;
        
        /// <summary>
        /// 数量
        /// </summary>
        public decimal Quantity { get; set; } = 0;
        
        /// <summary>
        /// 详情日期
        /// </summary>
        public DateTime? DetailDate { get; set; }
        
        /// <summary>
        /// 主单位数量
        /// </summary>
        public decimal MainUnitQuantity { get; set; } = 0;
        
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; } = string.Empty;
    }
} 